//
//  NSDate+range.h
//  
//
//  Created by JIRENTIANXIANG on 6/27/15.
//
//

#import <Foundation/Foundation.h>

@interface NSDate (range)

-(NSDate*)localDate;

-(BOOL)isWithinToday;
-(BOOL)isPast;
-(BOOL)isPastWithinOneMinute;
-(BOOL)isPastWithinOneHour;
-(BOOL)isPastWithinToday;
-(BOOL)isWithinYesterday;
-(BOOL)isWithinTheDayBeforeYesterday;
//-(BOOL)isBeforeTheDayBeforeYesterday;
-(NSInteger)weekdayIndex;
-(NSArray*)weekdays;
-(NSDate*)numberOfDaysAgo:(NSUInteger)days;
-(NSDate*)numberOFDaysLater:(NSUInteger)days;

@end
